namespace Apps.Models
{
    using Models;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PL_RL_DETAILS")]
    public partial class PL_RL_DETAILS
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PL_RL_DETAILS()
        {
            RL_SAMPLING = new HashSet<RL_SAMPLING>();
        }

        [Key]
        [StringLength(100)]
        public string DETAIL_ID { get; set; }

        [StringLength(40)]
        public string CREW_ID { get; set; }

        [StringLength(40)]
        public string TEAM_ID { get; set; }

        [StringLength(40)]
        public string BATCH_CODE { get; set; }

        public bool? STATUS { get; set; }

        [StringLength(40)]
        public string CREATE_USER_ID { get; set; }

        public DateTime? CREATE_TIME { get; set; }

        public DateTime? PLAN_DATE { get; set; }
        
        public virtual PUB_CREW PUB_CREW { get; set; }

        public virtual PUB_TEAM PUB_TEAM { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<RL_SAMPLING> RL_SAMPLING { get; set; }

    }
}
